<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>click = mousedown + mouseup</title>
</head>
<body>
<script>
    document.onclick = function () {
        console.log("click");
    };
    document.onmouseup = function () {
        console.log("mouseup");
    };
    document.onmousedown = function () {
        console.log("mousedown");
    }
</script>
</body>
</html>
